<?php

namespace Database\Seeders;

use App\Models\Person;
use Illuminate\Database\Seeder;

class PersonSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        // Francisco
        $firstPerson = new Person();
        $firstPerson->user_id = 1;
        $firstPerson->name = 'Francisco';
        $firstPerson->surname = 'Ramones';
        $firstPerson->sex = 'M';
        $firstPerson->birthdate = '02/19/1990';
        $firstPerson->birthplace = 'Central City';
        $firstPerson->fiscalcode = '123';
        $firstPerson->save();
        // Barry
        $secondPerson = new Person();
        $secondPerson->user_id = 2;
        $secondPerson->name = 'Barry';
        $secondPerson->surname = 'Allen';
        $secondPerson->sex = 'M';
        $secondPerson->birthdate = '06/12/1990';
        $secondPerson->birthplace = 'Central City';
        $secondPerson->fiscalcode = '456';
        $secondPerson->save();
    }
}
